package cn.codehaus.core.system.dao.user;

import java.util.List;

import cn.codehaus.core.common.dao.BaseHibernateDao;

public interface UserDao extends BaseHibernateDao {

	public static String USER_ID = "userid";
	public static String ACCOUNTS = "accounts";
	public static String USERNAME = "userName";
	public static String PASSWORD = "password";
	
	List<SysUsers> findByAccounts(String accounts);

	List<SysUsers> findByPassword(String password);

	List<SysUsers> findByAccountsAndPassword(String accounts, String password);

	List<SysUsers> findByUserName(String userName, final int firstResult,
			final int size);

}
